package com.ruoyi.dynamic.controller.crm;


import com.ruoyi.common.core.constant.constant.PathConstant;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.pojo.result.Pages;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.dynamic.model.pojo.entity.Gift;
import com.ruoyi.dynamic.model.pojo.request.crm.CrmRoomSearchRequest;
import com.ruoyi.dynamic.model.pojo.result.crm.CrmRoomInfoResult;
import com.ruoyi.dynamic.service.IRoomService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springdoc.api.annotations.ParameterObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Tag(name = "CRM-房间相关", description = "CRM-房间相关")
@RestController
@RequestMapping(PathConstant.CRM_PATH + "room")
public class CrmRoomController {

    @Autowired
    private IRoomService iRoomService;

    @RequiresPermissions("dynamic:room:list")
    @Operation(summary = "房间列表", description = "房间列表")
    @GetMapping("listPage")
    public R listPage(@ParameterObject CrmRoomSearchRequest request) {
        Pages<CrmRoomInfoResult> pages = iRoomService.crmlistPage(request);
        return R.ok(pages);
    }






}

